package com.stlm2.dems.informs.entity;

/**
 * Created by ZLQ on 2017/5/21.
 */
public enum InformsState {


    Valid(1) {
        public String toString() {
            return "有效";
        }
    },
    Invalid(0) {
        public String toString() {
            return "无效";
        }
    };
    private final int val;

    InformsState(int n) {
        val = n;
    }

    public int getIntValue() {
        return val;
    }

    public static InformsState getByIntValue(int n) {
        switch (n) {
            case 1:
                return Valid;
            case 0:
                return Invalid;

            default:
                return null;
        }
    }

}
